#ifndef POSVIEWWIDGET_H
#define POSVIEWWIDGET_H

#include <QWidget>

#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsEllipseItem>
#include <QPointF>
#include <posview.h>

namespace Ui {
class PosViewWidget;
}

class PosViewWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PosViewWidget(QWidget *parent = nullptr);
    ~PosViewWidget();

private slots:
    void updateFileList(bool);

    void on_fileNameListComboBox_currentIndexChanged(const QString &arg1);

    void on_comboBox_currentIndexChanged(int index);

    void on_deleteCurrentToolButton_clicked();

    void on_deleteAllToolButton_clicked();

    void on_numToolButton_clicked();

    void updateMsgLable(const QString& msg);

    void on_openFileToolButton_clicked();

private:
    void user_init(void);

private:
    Ui::PosViewWidget *ui;

    PosView* posView;
    QGraphicsScene* scene;

    bool showNumEnable;
};

#endif // POSVIEWWIDGET_H
